package com.liu.community.mapper;/*
 *@Author:Liu Xing-zhi
 *Description:
 *Date:Crated in 17:39 2021/9/30
 */


import com.liu.community.pojor.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface UserMapper {

    public  List<User> queryUser();

    public  void insert(User user);

    public  User queryUserByToken(@Param("token") String token);

    public  User  queryUserById(@Param("id")Integer id);

    public  User  queryUserByAccountId(@Param("accountId")String accountId);

    public  void updateUser(User user);

}
